package com.edu.hibernate;

import java.sql.Timestamp;

/**
 * Survey entity. @author MyEclipse Persistence Tools
 */

public class Survey implements java.io.Serializable {

	// Fields

	private Integer surveyId;
	private String title;
	private String contents;
	private String createBy;
	private Timestamp createDate;
	private Boolean status;

	// Constructors

	/** default constructor */
	public Survey() {
	}

	/** minimal constructor */
	public Survey(Integer surveyId) {
		this.surveyId = surveyId;
	}

	/** full constructor */
	public Survey(Integer surveyId, String title, String contents,
			String createBy, Timestamp createDate, Boolean status) {
		this.surveyId = surveyId;
		this.title = title;
		this.contents = contents;
		this.createBy = createBy;
		this.createDate = createDate;
		this.status = status;
	}

	// Property accessors

	public Integer getSurveyId() {
		return this.surveyId;
	}

	public void setSurveyId(Integer surveyId) {
		this.surveyId = surveyId;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContents() {
		return this.contents;
	}

	public void setContents(String contents) {
		this.contents = contents;
	}

	public String getCreateBy() {
		return this.createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Boolean getStatus() {
		return this.status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

}